package thread.threetype.callable;

import java.util.concurrent.Callable;

public class C implements Callable<User> {
    @Override
    public User call() throws Exception {
        System.out.println("当前的执行线程是:"+Thread.currentThread().getName());
        System.out.println("callable类型的线程进行了执行");
        User user = new User();
        user.setAge(28);
        user.setName("sfy");
        return user;
    }
}
